package com.young.ysepay.controllers;

import com.young.ysepay.service.YsBalanceQueryService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/6/5 8:51
 * @Des 银盛余额查询
 */
@RestController
@RequestMapping("/ysBalanceQuery")
public class YsBalanceQueryController {
    private static Logger log = LoggerFactory.getLogger(YsController.class);
    @Autowired
    private YsBalanceQueryService ysBalanceQuery;
    /**
     * @Author zhaopengjun
     * @Description //银盛商户余额查询（一清提现）
     * @Date 15:48 2019/5/23
     * @Param
     * @return
     **/
    @RequestMapping(value = { "/balanceQuery" }, produces = { "text/html;charset=UTF-8" }, method = {
            RequestMethod.POST })
    public String balanceQuery(@RequestParam Map<String,Object> paramMap){
        System.out.println("----------- 银盛商户余额查询----------------");
        return ysBalanceQuery.ysBalanceQuery(paramMap);
    }
}
